package cn.edu.bcu.ls.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.edu.bcu.ls.entity.Tag;
import cn.edu.bcu.ls.mapper.TagMapper;
import cn.edu.bcu.ls.serviceImpl.TagService;

@Service
public class TagServiceImpl implements TagService{

    @Resource
    private TagMapper tagMapper;

    @Override
    public int deleteByPrimaryKey(Integer tId,String tName) {
        return tagMapper.deleteByPrimaryKey(tId,tName);
    }

    @Override
    public int insert(Tag record) {
        return tagMapper.insert(record);
    }

    @Override
    public int insertSelective(Tag record) {
        return tagMapper.insertSelective(record);
    }

	@Override
	public List<Tag> queryTag() {
		// TODO Auto-generated method stub
		return tagMapper.queryTag();
	}
    @Override
    public Tag selectByPrimaryKey(Integer tId) {
        return tagMapper.selectByPrimaryKey(tId);
    }

    @Override
    public int updateByPrimaryKeySelective(Tag record) {
        return tagMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Tag record) {
        return tagMapper.updateByPrimaryKey(record);

}
}
